package main

import (
	"iris-shop/common/dao"
	dbMysql "iris-shop/common/db/mysql"
	"iris-shop/common/db/rabbitmq"
	"iris-shop/common/services"
)

func main() {
	db := dbMysql.DBConn()

	product := dao.NewProductManager("product", db)
	productService := services.NewProductService(product)

	order := dao.NewOrderMangerRepository("order",db)
	orderService := services.NewOrderService(order)


	rabbitmqConsumerSiample := rabbitmq.NewRabbitMQSimple("iris-shop")

	rabbitmqConsumerSiample.ConsumeSimple(orderService, productService)


}
